package com.zen.lon.open.remote.condition;

import org.springframework.core.Ordered;
import org.springframework.core.env.Environment;

/**
 * RemoteClient相关执行条件接口
 *
 * @author ZonLen since on 2021/7/7 下午7:38
 */
public interface ProxyCondition extends Ordered {

  /**
   * 符合条件的注入
   */
  boolean eligible(Class<?> remoteClientClass);

  void setEnvironment(Environment environment);

  @Override
  default int getOrder() {
    return 1 << 10;
  }
}
